//
//  QRNavigationController.h
//  danpin
//
//  Created by chuangjia on 9/11/2015.
//  Copyright © 2015 chuangjia. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "UINavigationController+YRBackGesture.h"
#import "QRDelegate.h"
@interface QRNavigationController : UINavigationController
+ (instancetype)new __attribute__
((unavailable("[+new] is not allowed, use [+newWithQRDelegate:]")));

- (instancetype) init __attribute__
((unavailable("[-init] is not allowed, use [+newWithQRDelegate:]")));

- (id)initWithCoder:(NSCoder *)aDecoder __attribute__
((unavailable("[-initWithCoder:] is not allowed, use [+newWithQRDelegate:]")));

- (instancetype)initWithNavigationBarClass:(Class)navigationBarClass toolbarClass:(Class)toolbarClass __attribute__
((unavailable("[-initWithNavigationBarClass:toolbarClass:] is not allowed, use [+newWithQRDelegate:]")));

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil __attribute__
((unavailable("[-initWithNibName:bundle:] is not allowed, use [+newWithQRDelegate:]")));

- (instancetype)initWithRootViewController:(UIViewController *)rootViewController __attribute__
((unavailable("[-initWithRootViewController:] is not allowed, use [+newWithQRDelegate:]")));

+ (instancetype)newWithQRDelegate:(id<QRDelegate>)delegate;

@end